<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/3
  Time: 20:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<head>
    <base href="<%=basePath%>"/>
    <title>Title</title>
</head>
<body>
<h1>收货地址显示页面</h1>
<hr style="height: 2px;color: greenyellow;"/>
<c:forEach items="${district.list}" var="shipping">
    <div style="border: 1px solid darkred;width: 400px;">
        <p>收货人姓名:${shipping.receiverName}</p>
        <p>收货人地区:${shipping.receiverProvince}${shipping.receiverCity}${shipping.receiverDistrict}</p>
        <p>收货人地址:${shipping.receiverAddress}</p>
        <p>收货人邮编:${shipping.receiverZip}</p>
        <p>收货人手机:${shipping.receiverMobile}</p>
        <form method="post" action="shipping/select2.do">
            收货人电话:${shipping.receiverPhone}&emsp;&emsp;<input type="submit" value="修改"/>
            <input type="hidden" name="shippingId" value="${shipping.id}"/>
        </form>
        <form method="post" action="order/create.do">
            收货人电话:${shipping.receiverPhone}&emsp;&emsp;<input type="submit" value="提交订单"/>
            <input type="hidden" name="shippingId" value="${shipping.id}"/>
        </form>
    </div>
    <br/>
</c:forEach>
<input type="button" onclick="location.href = 'shipping_modify.do'" value="添加"/>
</body>
</html>
